package com.java.Jdbc;

import java.util.List;

public class JDBCTest {
    public static void main(String[] args) {

        System.out.println("t_student表的数据如下：");
        System.out.println("-------------------------------------------------------------------------");
        List<t_student> students = JDBCUtils.executeQuery(t_student.class, "select * from t_student");
        students.forEach(student -> System.out.println(student));

        System.out.println("\n");
        System.out.println("car表的数据如下：");
        System.out.println("-------------------------------------------------------------------------");
        List<Car> cars = JDBCUtils.executeQuery(Car.class, "select * from car");
        cars.forEach(car -> System.out.println(car));

    }

}
